package com.lcf.app.rabbitmq.consumer.listener;

import com.lcf.common.model.MqConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author ChenFei
 * @date 2021/12/2
 */
@Slf4j
@Component
public class DirectReceiverListener {

    @RabbitListener(queues = MqConstant.DIRECT_QUEUE_ONE)
    public void directOne(String message){
        log.info("directOne : {}",message);
    }

    @RabbitListener(queues = MqConstant.DIRECT_QUEUE_TWO)
    public void directTwo(String message){
        log.info("directTwo : {}",message);
    }

}
